package com.study.boot;

import com.study.client.RpcConsumer;
import com.study.service.UserService;

public class ClientBootStrap {
    public static void main(String[] args) throws InterruptedException {
        RpcConsumer rpcConsumer = new RpcConsumer();
        UserService service = (UserService) rpcConsumer.createProxy(UserService.class, UserService.class.getName());

        while (true){
            String result = service.sayHello("visit success or fail!!");
            System.out.println(result);
            Thread.sleep(2000);
        }
    }
}
